import java.util.UUID
/**
 * Created by IntelliJ IDEA.
 * User: abdelkarim
 * Date: 13-Apr-2008
 * Time: 8:43:44 PM
 * To change this template use File | Settings | File Templates.
 */
class Invitation {
    Date     dateCreated
    Date     lasteUpdated
    String   inviter
    String   invited
    String   message
    boolean  expired = false
    String   code   = UUID.randomUUID().toString()

    static constraints={
        invited(email:true)
        message(widget:'text', maxSize:300, blank:true,nullable:true)
    }
}